class AddPolymorphismToRelations < ActiveRecord::Migration
  def self.up
    add_column :relations, :object_type, :string
    add_column :relations, :subject_type, :string
  end

  def self.down
    remove_column :relations, :object_type
    remove_column :relations, :subject_type
  end
end
